package com.gitee.dubboOps.parsers;

import com.google.gson.Gson;
import com.taobao.jaket.model.ServiceDefinition;

public class MetadataParser {

    public static ServiceDefinition parse(String serviceData) throws Exception {
        if (serviceData == null) {
            return null;
        }
        return new Gson().fromJson(serviceData, ServiceDefinition.class);
    }
}